package com.example.myapplication.model.entity;

import androidx.annotation.NonNull;
import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import com.example.myapplication.BR;
@Entity
public class Forum extends BaseObservable {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "forumId")
    @Bindable
    private int forumId;

    @ColumnInfo(name = "forumTitle")
    @Bindable
    private String forumTitle;

    @ColumnInfo(name = "forumContent")
    @Bindable
    private String forumContent;

    @ColumnInfo(name = "forumAuthorId")
    @Bindable
    private int forumAuthorId;

    @ColumnInfo(name = "forumTime")
    @Bindable
    private String forumTime;

    @ColumnInfo(name = "forumAgree")
    @Bindable
    private int forumAgree;

    @ColumnInfo(name = "forumCoin")
    @Bindable
    private int forumCoin;

    @ColumnInfo(name = "forumCollect")
    @Bindable
    private int forumCollect;

    @ColumnInfo(name = "forumAgreeId")
    @Bindable
    private int forumAgreeId;

    public int getForumId() {
        return forumId;
    }

    public void setForumId(int forumId) {
        this.forumId = forumId;
    }

    public String getForumTitle() {
        return forumTitle;
    }

    public void setForumTitle(String forumTitle) {
        this.forumTitle = forumTitle;
    }

    public String getForumContent() {
        return forumContent;
    }

    public void setForumContent(String forumContent) {
        this.forumContent = forumContent;
    }

    public int getForumAuthorId() {
        return forumAuthorId;
    }

    public void setForumAuthorId(int forumAuthorId) {
        this.forumAuthorId = forumAuthorId;
    }

    public String getForumTime() {
        return forumTime;
    }

    public void setForumTime(String forumTime) {
        this.forumTime = forumTime;
    }

    public int getForumAgree() {
        return forumAgree;
    }

    public void setForumAgree(int forumAgree) {
        this.forumAgree = forumAgree;
    }

    public int getForumCoin() {
        return forumCoin;
    }

    public void setForumCoin(int forumCoin) {
        this.forumCoin = forumCoin;
    }

    public int getForumCollect() {
        return forumCollect;
    }

    public void setForumCollect(int forumCollect) {
        this.forumCollect = forumCollect;
    }

    public int getForumAgreeId() {
        return forumAgreeId;
    }

    public void setForumAgreeId(int forumAgreeId) {
        this.forumAgreeId = forumAgreeId;
    }

    public Forum(int forumId, String forumTitle, String forumContent, int forumAuthorId, String forumTime, int forumAgree, int forumCoin, int forumCollect, int forumAgreeId) {
        this.forumId = forumId;
        this.forumTitle = forumTitle;
        this.forumContent = forumContent;
        this.forumAuthorId = forumAuthorId;
        this.forumTime = forumTime;
        this.forumAgree = forumAgree;
        this.forumCoin = forumCoin;
        this.forumCollect = forumCollect;
        this.forumAgreeId = forumAgreeId;
    }
}
